<!--审核知识库 start-->
    <div id="reviewKnowledge" class="modal fade modal-blur" tabindex="-1" role="dialog" style="display:none;" >
          <div class="modal-dialog">
                <div class="modal-content panel-info" style="width:800px;">
                   <div class="modal-header panel-heading">
                      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                      <h4 class="modal-title"><i class="fa  fa-gears"></i>审核知识库</h4>
                  </div>
                  <div class="modal-body" >
                     <ul id="uidemo-tabs-default-demo" class="nav nav-tabs" style="margin-top: 20px">
                          <li ng-repeat="tab in reviewKnowledge.tabs" ng-class="tab.active">
                          <a  data-toggle="tab"  ng-click="reviewKnowledge.tabselect(tab.id);">{{tab.title}}</a>
                           </li>
                      </ul>

                      <div class="tab-content tab-content-bordered">  
                      <!--编辑知识库 start-->
                        <div class="tab-pane fade" ng-class="reviewKnowledge.tabs[0].divactive">
                              <div class="row form-group"> 
                                     <label class="col-md-2 control-label">附件
                                        <a  href="http://{{path}}/services/solution/download/{{entity.id}}">
                                          <!-- <img src="{{entity.filePic}}" > -->
                                        </a>
                                      </label>
                                     <div class="col-md-4"> 
                                      <input type="hidden" id="fileNames" ng-model="entity.fileName"  value="{{entity.fileName}}">
                                        {{entity.fileName}}
                                    </div> 
                                     <!--label class="col-md-2 control-label" for="publishRange">发布范围</label> 
                                     <div class="col-md-4">
                                      <select  id="publishRange" class="form-control"  
                                         ng-model="entity.publishRange"  data-placeholder="选择发布范围">
                                                <option ng-repeat="r in publishRanges" value="{{r.id}}">{{r.name}}</option>
                                        </select>   
                                    </div--> 
                            </div>       
                            <div class="row form-group" id="reviewBtns">
                                 <label class="col-md-2 control-label" ></label>
                                 <div class="col-md-4"></div>  
                                    

                                 <!--  <label class="col-md-2 control-label"> 审核： </label> -->
                                  <!--div class="col-xs-6 col-md-6">
                                      <div ng-show="!showOutTime" style="float:right;"> 
                                         <button type="button" class="btn btn-info" ng-click="verifySolution('publish');" ng-show="entity.outtime">发布</button>
                                  
                                        <button type="button" class="btn btn-default" ng-click="verifySolution('outtime');" ng-show="entity.outtime">撤销</button>
                                      </div>
                                      
                                      <!--div ng-show="showOutTime" style="float:right;">
                                        <button type="button" class="btn btn-info disabled" >发布</button>
                                        <button type="button" class="btn btn-default disabled">撤销</button>
                                      </div>

                                      <div ng-show="couldReview" style="float:right;">
                                          <button type="button" class="btn btn-success" ng-click="verifySolution('success');">通过</button>
                                        
                                          <button type="button" class="btn btn-danger" ng-click="verifySolution('failed');">驳回</button>
                                          <button type="button" class="btn btn-warning" ng-click="verifySolution('reject');">拒绝</button>
                                      </div> 
                                       <!--div ng-show="!couldReview" style="float:right;">
                                            <button type="button" class="btn btn-success disabled">通过</button>
                                            <button type="button" class="btn btn-danger disabled">驳回</button>
                                            <button type="button" class="btn btn-warning disabled">拒绝</button>
                                       </div>
                                  </div-->   
                             </div>
                            <div class="row form-group">
                                    <label class="col-md-2 control-label" for="title">
                                            标题:
                                    </label>
                                    <div class="col-md-4">
                                        <input id="title" name="title" class="form-control"  ng-model="entity.title" placeholder="标题" />
                                    </div>
                                     <label class="col-md-2 control-label" for="keys">关键字:</label>
                                     <div class="col-md-4">
                                           <input  class="form-control" id="keys" ng-model="entity.keys" name="keys"  placeholder="关键字" />
                                     </div> 
                            </div>
                             <div class="row form-group">
                                 <label class="col-md-2 control-label" for="type">分类:</label>
                                 <div class="col-md-4">
                                      <input  id="type1" name="type1" ng-model="entity.typeName" class="form-control"  placeholder="分类"
                                          ng-click="doOnLoad1('type1');" data-toggle="modal" data-target="#typeboxbox"
                                          > 
                                         <input type="hidden" id="type1id" name="type1Id" ng-model="entity.type">  
                                 </div> 
                                 <label class="col-md-2 control-label" for="range">使用范围:</label>
                                 <div class="col-md-4">
                                      <select  id="range" class="form-control"  
                                         ng-model="entity.range"  data-placeholder="选择使用范围">
                                                <option ng-repeat="r in ranges" value="{{r.id}}">{{r.name}}</option>
                                        </select>   
                                </div> 
                            </div>
                                 
                            <div class="row form-group">
                                    <label class="col-md-3 control-label" for="number">知识库编号:</label>
                                    <div class="col-md-8" style="z-indx:1px;">
                                          <input  id="number" name="number"  ng-model="entity.number" class="form-control"  placeholder="知识库编号"> 
                                    </div>             
                            </div>
                            <div class="row form-group">
                                    <label class="col-md-3 control-label" for="content">知识库内容:</label>
                                    <div class="col-md-8" style="z-indx:1px;">
                                      <textarea ckeditor ng-model="entity.content" class="form-control"></textarea>
                                    </div>             
                            </div>
                            <input type="hidden" ng-model="entity.id">
                            <div class="panel-footer text-center">
                                   <a ng-click="updateSolution();"  data-dismiss="modal" class="btn btn-primary">提交</a>
                                  <a  data-dismiss="modal" class="btn btn-primary">取消</a>
                               </div>
                         </div><!--tab-pane fade -->
                        <!--审核页面 start-->
                         <div class="tab-pane fade" ng-class="reviewKnowledge.tabs[1].divactive">
                              <div class="row form-group" ng-show="publishbox"> 
                                     <label class="col-md-2 control-label" for="publishRange">发布范围</label> 
                                     <div class="col-md-4">
                                      <select  id="publishRange" class="form-control"  
                                         ng-model="entity.publishRange"  data-placeholder="选择发布范围">
                                                <option ng-repeat="r in publishRanges" value="{{r.id}}">{{r.name}}</option>
                                        </select>   
                                    </div> 
                            </div>       
                            <div class="row form-group" id="reviewBtns">
                                 <label class="col-md-2 control-label" >审核</label>
                                  <div class="col-xs-6 col-md-6">
                                      <div ng-show="!showOutTime" style="float:right;"> 
                                         <button type="button" class="btn btn-info" ng-click="verifySolution('publish');" ng-show="entity.outtime">发布</button>
                                  
                                        <button type="button" class="btn btn-default" ng-click="verifySolution('outtime');" ng-show="entity.outtime">撤销</button>
                                      </div>
                                      
                                      <!--div ng-show="showOutTime" style="float:right;">
                                        <button type="button" class="btn btn-info disabled" >发布</button>
                                        <button type="button" class="btn btn-default disabled">撤销</button>
                                      </div-->

                                      <div  style="float:right;" ng-show="couldReview"> <!---->
                                          <button type="button" class="btn btn-success" ng-click="verifySolution('success');">通过</button>
                                        
                                          <button type="button" class="btn btn-danger" ng-click="verifySolution('failed');">驳回</button>
                                          <button type="button" class="btn btn-warning" ng-click="verifySolution('reject');">拒绝</button>
                                      </div> 
                                       <!--div ng-show="!couldReview" style="float:right;">
                                            <button type="button" class="btn btn-success disabled">通过</button>
                                            <button type="button" class="btn btn-danger disabled">驳回</button>
                                            <button type="button" class="btn btn-warning disabled">拒绝</button>
                                       </div-->
                                  </div>   
                             </div>
                             <div class="row form-group" ng-show="showReason"> 
                                     <label class="col-md-2 control-label" for="reasons">{{reasonName}}意见</label> 
                                     <div class="col-md-8">
                                      <textarea ckeditor id="reasonval" ng-model="reason" class="form-control"></textarea>
                                    </div> 
                            </div>   
                            <input type="hidden" ng-model="entity.id">
                             <div class="panel-footer text-center">
                                   <a ng-click="verifySolutions('{{verifyType}}');"  data-dismiss="modal" class="btn btn-primary">提交</a>
                                  <a  data-dismiss="modal" class="btn btn-primary">取消</a>
                             </div> 
                         </div>
                         <!--审核页面 end -->

                      <!--授权 start -->
                      <div class="tab-pane fade {{reviewKnowledge.tabs[2].divactive}}"> <!-- ng-controller="soltctrl as vm" --> 
                               <div class="row form-group">
                                  <div class="col-md-8">
                                    <label for="actionTypes" class="col-xs-3 control-label">权限类型:</label>
                                    <div class="col-xs-8">
                                      <select  id="actions" class="form-control"  
                                         ng-model="actionType"  data-placeholder="权限类型">
                                                <option ng-repeat="r in solutionActionTypes" value="{{r.id}}" ng-selected="{{r.id == 1}}">{{r.name}}</option>
                                        </select>  
                                    </div>
                                  </div>
                                 </div> 
                                <div class="row form-group"  style="margin-left:15px;">
                                 <div class="col-md-8">
                                      <div id="jsTreeGroups" > 
                                          <div class="row" cg-busy="vm.promise">
                                              <toaster-container></toaster-container>
                                          <div> 
                                          <div class="panel panel-info">
                                             <div class="panel-heading">
                                                 <i class="glyphicon glyphicon-tree-conifer"></i>工作组
                                             </div> 
                                             <div class="panel-body">
                                                  <div js-tree="vm.treeConfig"  ng-model="vm.treeData.groupData" should-apply="vm.applyModelChanges()" tree-events="select_node:vm.nodeGroupSelected;ready:vm.readyCB;create_node:vm.createCB">
                                                  </div>
                                             </div>
                                         </div>
                                        </div>
                                       </div>
                                   </div> 
                                 </div>
                             </div>  <!--row -->
                            <div class="row form-group" >
                                <div  class="col-md-15" style="padding-left:25px;">
                                    <div class="select_side" > 
                                        <div class="panel panel-info">
                                             <div class="panel-heading">
                                                 <i class="glyphicon glyphicon-tree-conifer"></i>待选区
                                             </div> 
                                             <div class="panel-body"> 
                                               <select id="selectL" name="selectL"  multiple="multiple"  
                                                        ng-model="selectModelL"  ng-options=" (o.order+'--'+o.name) for o in peopleL | index"  
                                                        ng-change="selChange(selectModelL)">
                                                     <option value=""></option>     
                                               </select>
                                                <div class="sub_btn"><input type="button" class="btn btn-info" id="sub1" value="保存" ng-click="saveSolution()"/></div>  
                                              </div>
                                          </div>
                                   </div> 

                                  <div class="select_opt"> 
                                       <p id="toright" title="添加" ng-click="findSelectR()">></p> 
                                       <p id="toleft" title="移除" ng-click="findSelectL()"><</p> 
                                  </div> 

                                 <div class="select_side"> 
                                       <div class="panel panel-info">
                                             <div class="panel-heading">
                                                 <i class="glyphicon glyphicon-tree-conifer"></i>已选区
                                             </div> 
                                             <div class="panel-body"> 
                                                 <select id="selectR" name="selectR" multiple="multiple" 
                                                         ng-model="selectModelR" ng-options=" (o.order+'--'+o.name)  for o in peopleR | index"  
                                                          ng-change="selChange(selectModelR)"> 
                                                 </select> 
                                                 <div class="sub_btn"><input type="button" class="btn btn-info"  id="sub2" value="赋予全体用户权限" ng-click="saveAllSolution()"/></div>    
                                            </div> 
                                    </div>
                               </div>
                             </div>
                            </div><!--row -->
                          <!-- </div> -->
                       </div><!--tab-pane fade  -->
                   <!--授权 end -->

                 </div><!--tab-content-->
              </div><!--content-body-->
            </div>
        </div> 
    </div> 
    <!--审核知识库 end-->   